<template>
	<view>
		<view class="jiange">拜访人信息</view>
		<view class="body">
			<view class="item">
				<text>拜访人员</text>
				<view style="display: flex;justify-content: flex-end;align-items: center;">
					<image style="width: 70rpx;height: 70rpx;" src="../../../static/icon-geren.png" mode="aspectFit">
					</image>
					<text>胡一菲</text>
				</view>
			</view>
			<view class="item">
				<text>部门</text>
				<text>市场营销部</text>
			</view>
			<view class="item">
				<text>地址</text>
				<text></text>
			</view>
			<view class="item">
				<text>访问时间</text>
				<text>市场营销部</text>
			</view>
			<view class="item">
				<text>邀请人</text>
				<view style="display: flex;justify-content: flex-end;align-items: center;">
					<image style="width: 70rpx;height: 70rpx;" src="../../../static/icon-geren.png" mode="aspectFit">
					</image>
					<text>胡一菲</text>
				</view>
			</view>
			<view class="item">
				<text>邀请时间</text>
				<text>市场营销部</text>
			</view>
		</view>
		<view class="jiange">受邀人</view>
		<view class="body">
			<view class="item">
				<text>手机号</text>
				<text>dfs</text>
			</view>
			<view class="item">
				<text>姓名</text>
				<text>李四</text>
			</view>
		</view>
		<view class="jiange">审批人</view>
		<view class="body">
			<view class="item">
				<text>审批人</text>
				<view style="display: flex;justify-content: flex-end;align-items: center;">
					<image style="width: 70rpx;height: 70rpx;" src="../../../static/icon-geren.png" mode="aspectFit">
					</image>
					<text>曾小贤</text>
				</view>
			</view>
			<view class="item">
				<text>审核状态</text>
				<text :class="state==0?'state0':state==1?'state1':state==2?'state2':'state1'">
					{{state==0?'待审批':state==1?'已通过':state==2?'已驳回':'已通过'}}
				</text>
			</view>
		</view>
		<view v-if="state==0"
			style="border-top: #e3e3e3 1rpx solid;padding-top: 20rpx; width: 100%;position: absolute;bottom: 20rpx;display: flex;justify-content: space-around;">
			<button type="default"
				style="background-color: #007AFF;color: #fff;border-radius: 20rpx;width: 43%;">通过</button>
			<button type="default"
				style="background-color: #007AFF;color: #fff;border-radius: 20rpx;width: 43%;">驳回</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				state: 0,
				ii: {
					time: '1657611827182',
					jstime: '1657611827182',
					state: 0,
					username: '张三',
					phone: '12313214575',
					bfname: '李四',
					bm: '市场营销部'
				},
				id: 0
			}
		},
		onLoad: function(e) {
			this.id = e.id
		},
		methods: {

		}
	}
</script>

<style>
	.jiange {
		height: 60rpx;
		width: 100%;
		background-color: #f2f2f2;
		line-height: 60rpx;
		padding-left: 30rpx;
		color: #a7a7a7;
		font-size: 30rpx;
	}

	.body {
		padding-left: 30rpx;
		line-height: 70rpx;
		font-size: 32rpx;
	}

	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-right: 30rpx;
		border-bottom: #f2f2f2 1rpx solid;
	}

	.state0 {
		color: #d99100;
	}

	.state1 {
		color: #48d96a;
	}

	.state2 {
		color: #ff0000;
	}
</style>
